package com.ruoyi.course.service.impl;

import com.ruoyi.course.domain.LabCourseAdjust;
import com.ruoyi.course.service.ILabCourseAdjustService;
import com.ruoyi.labdata.service.EndTaskListener;
import com.ruoyi.labsafety.domain.LabSafetyCheckForm;
import com.ruoyi.labsafety.service.ILabSafetyCheckFormService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class CourseAdjustListerner extends EndTaskListener<LabCourseAdjust> {

  @Autowired
  private ILabCourseAdjustService labCourseAdjustService;

  @Override
  public int doTask(Long instanceId) {
    labCourseAdjustService.commitCourseAdjust(instanceId);
    return 1;
  }
}
